// 获取用户列表
export function getUserList() {
  return {
    // isOpen: false,
    url: 'auth/authUserMgr/pageList',
    type: 'get',
    data: {
      msg: 'success',
      code: '0',
      data: {
        currentPageNum: 1,
        hasNext: true,
        hasPrevious: false,
        lastPageNum: 4,
        pageSize: 10,
        records: [
          {
            userId: 1,
            cmntStr: 'string',
            deptId: 1,
            nname: '管理员',
            userPost: '职位1',
            loginUname: 'name1',
            empId: 1,
            cnName: '测试用户1',
            enName: 'test1',
            roleIds: [1],
            status: 0,
            sysUser: true,
            updateTm: '2019-03-14T07:51:45.742Z',
            updaterId: 1
          },
          {
            userId: 2,
            cmntStr: 'string',
            deptId: 2,
            nname: '管理员2',
            userPost: '职位2',
            loginUname: 'name2',
            empId: 2,
            cnName: '测试用户2',
            enName: 'test2',
            roleIds: [1, 2],
            status: 0,
            sysUser: true,
            updateTm: '2019-03-14T07:51:45.742Z',
            updaterId: 1
          },
          {
            userId: 3,
            cmntStr: 'string',
            deptId: 3,
            nname: '管理员3',
            userPost: '职位3',
            loginUname: 'name3',
            empId: 3,
            cnName: '测试用户3',
            enName: 'test3',
            roleIds: [1],
            status: 0,
            sysUser: true,
            updateTm: '2019-03-14T07:51:45.742Z',
            updaterId: 1
          },
          {
            userId: 4,
            cmntStr: 'string',
            deptId: 4,
            nname: '管理员4',
            userPost: '职位4',
            loginUname: 'name4',
            empId: 4,
            cnName: '测试用户4',
            enName: 'test4',
            roleIds: [4],
            status: 0,
            sysUser: true,
            updateTm: '2019-03-14T07:51:45.742Z',
            updaterId: 1
          },
          {
            userId: 5,
            cmntStr: 'string',
            deptId: 5,
            nname: '管理员5',
            userPost: '职位5',
            loginUname: 'name5',
            empId: 1,
            cnName: '测试用户5',
            enName: 'test5',
            roleIds: [1, 5],
            status: 0,
            sysUser: true,
            updateTm: '2019-03-14T07:51:45.742Z',
            updaterId: 1
          },
          {
            userId: 6,
            cmntStr: 'string',
            deptId: 6,
            nname: '管理员6',
            userPost: '职位6',
            loginUname: 'name6',
            empId: 6,
            cnName: '测试用户6',
            enName: 'test6',
            roleIds: [1],
            status: 0,
            sysUser: true,
            updateTm: '2019-03-14T07:51:45.742Z',
            updaterId: 1
          },
          {
            userId: 7,
            cmntStr: 'string',
            deptId: 7,
            nname: '管理员7',
            userPost: '职位7',
            loginUname: 'name7',
            empId: 7,
            cnName: '测试用户7',
            enName: 'test7',
            roleIds: [1],
            status: 0,
            sysUser: true,
            updateTm: '2019-03-14T07:51:45.742Z',
            updaterId: 1
          },
          {
            userId: 8,
            cmntStr: 'string',
            deptId: 8,
            nname: '管理员8',
            userPost: '职位8',
            loginUname: 'name8',
            empId: 1,
            cnName: '测试用户8',
            enName: 'test8',
            roleIds: [3, 8],
            status: 0,
            sysUser: true,
            updateTm: '2019-03-14T07:51:45.742Z',
            updaterId: 1
          },
          {
            userId: 9,
            cmntStr: 'string',
            deptId: 9,
            nname: '管理员9',
            userPost: '职位9',
            loginUname: 'name9',
            empId: 9,
            cnName: '测试用户9',
            enName: 'test9',
            roleIds: [1],
            status: 0,
            sysUser: true,
            updateTm: '2019-03-14T07:51:45.742Z',
            updaterId: 1
          },
          {
            userId: 10,
            cmntStr: 'string',
            deptId: 10,
            nname: '管理员10',
            userPost: '职位10',
            loginUname: 'name10',
            empId: 10,
            cnName: '测试用户10',
            enName: 'test10',
            roleIds: [1],
            status: 0,
            sysUser: true,
            updateTm: '2019-03-14T07:51:45.742Z',
            updaterId: 1
          }
        ],
        totalSize: 35
      }
    }
  }
}

export function getDeptListByCompId() {
  return {
    url: 'auth/authDeptMgr/compId/2',
    type: 'get',
    data: {
      msg: 'success',
      code: '0',
      data: [
        {
          compId: 2,
          deptId: 1,
          deptFname: 'CEO',
          deptNm: 'CEO',
          contactAddr: '广东省gzs',
          deptEmail: '111111111@qq.com',
          officePhone: '020-3987398',
          parentDeptId: '',
          principalCnName: '大神',
          zipCode: '000000',
          cmntStr: '',
          treeLevel: 1
        },
        {
          compId: 1,
          deptId: 2,
          deptFname: 'CEO',
          deptNm: 'CEO',
          contactAddr: '广东省gzs',
          deptEmail: '111111111@qq.com',
          officePhone: '020-3987398',
          parentDeptId: 1,
          principalCnName: '大神',
          zipCode: '000000',
          cmntStr: '',
          treeLevel: 2
        },
        {
          compId: 1,
          deptId: 3,
          deptFname: 'CEO',
          deptNm: 'CEO',
          contactAddr: '广东省gzs',
          deptEmail: '111111111@qq.com',
          officePhone: '020-3987398',
          parentDeptId: 1,
          principalCnName: '大神',
          zipCode: '000000',
          cmntStr: '',
          treeLevel: 2
        }
      ]
    }
  }
}

export function getDeptListByCompId3() {
  return {
    url: 'auth/authDeptMgr/compId/3',
    type: 'get',
    data: {
      msg: 'success',
      code: '0',
      data: [
        {
          compId: 1,
          deptId: 4,
          deptFname: 'CEO',
          deptNm: '测试部门',
          contactAddr: '广东省gzs',
          deptEmail: '111111111@qq.com',
          officePhone: '020-3987398',
          parentDeptId: 1,
          principalCnName: '大神',
          zipCode: '000000',
          cmntStr: '',
          treeLevel: 2
        }
      ]
    }
  }
}

export function getUserDetail() {
  return {
    url: 'sys/authUserMgr',
    type: 'get',
    data: {
      msg: 'success',
      code: '0',
      data: {
        cmntStr: 'string',
        deptId: 8,
        nname: '管理员8',
        userPost: '职位8',
        loginUname: 'name8',
        empId: 1,
        cnName: '测试用户8',
        enName: 'test8',
        roleIds: [3, 8],
        status: 0,
        sysUser: true,
        updateTm: '2019-03-14T07:51:45.742Z',
        updaterId: 1
      }
    }
  }
}

export function getRoleList() {
  return {
    url: 'auto/sysRoleMgr/list',
    type: 'get',
    data: {
      msg: 'success',
      code: '0',
      data: [
        {
          cmntStr: 'string',
          createTm: '2019-03-14T07:51:45.742Z',
          creatorId: 1,
          roleCode: 'admin',
          roleDesc: '这是管理员',
          roleId: 1,
          roleNm: '管理员',
          status: 0,
          sysRole: true,
          updateTm: '2019-03-14T07:51:45.742Z',
          updaterId: 1
        },
        {
          cmntStr: 'string',
          createTm: '2019-03-14T07:51:45.742Z',
          creatorId: 1,
          roleCode: 'user1',
          roleDesc: '这是用户1',
          roleId: 2,
          roleNm: '用户1',
          status: 0,
          sysRole: false,
          updateTm: '2019-03-14T07:51:45.742Z',
          updaterId: 1
        },
        {
          cmntStr: 'string',
          createTm: '2019-03-14T07:51:45.742Z',
          creatorId: 1,
          roleCode: 'user2',
          roleDesc: '这是用户2',
          roleId: 3,
          roleNm: '用户2',
          status: 0,
          sysRole: false,
          updateTm: '2019-03-14T07:51:45.742Z',
          updaterId: 1
        },
        {
          cmntStr: 'string',
          createTm: '2019-03-14T07:51:45.742Z',
          creatorId: 1,
          roleCode: 'user3',
          roleDesc: '这是用户3',
          roleId: 4,
          roleNm: '用户3',
          status: 0,
          sysRole: false,
          updateTm: '2019-03-14T07:51:45.742Z',
          updaterId: 1
        },
        {
          cmntStr: 'string',
          createTm: '2019-03-14T07:51:45.742Z',
          creatorId: 1,
          roleCode: 'user4',
          roleDesc: '这是用户4',
          roleId: 5,
          roleNm: '用户4',
          status: 0,
          sysRole: false,
          updateTm: '2019-03-14T07:51:45.742Z',
          updaterId: 1
        },
        {
          cmntStr: 'string',
          createTm: '2019-03-14T07:51:45.742Z',
          creatorId: 1,
          roleCode: 'user5',
          roleDesc: '这是用户5',
          roleId: 6,
          roleNm: '用户5',
          status: 0,
          sysRole: false,
          updateTm: '2019-03-14T07:51:45.742Z',
          updaterId: 1
        },
        {
          cmntStr: 'string',
          createTm: '2019-03-14T07:51:45.742Z',
          creatorId: 1,
          roleCode: 'user6',
          roleDesc: '这是用户6',
          roleId: 7,
          roleNm: '用户6',
          status: 0,
          sysRole: false,
          updateTm: '2019-03-14T07:51:45.742Z',
          updaterId: 1
        },
        {
          cmntStr: 'string',
          createTm: '2019-03-14T07:51:45.742Z',
          creatorId: 1,
          roleCode: 'user7',
          roleDesc: '这是用户7',
          roleId: 8,
          roleNm: '用户7',
          status: 0,
          sysRole: false,
          updateTm: '2019-03-14T07:51:45.742Z',
          updaterId: 1
        },
        {
          cmntStr: 'string',
          createTm: '2019-03-14T07:51:45.742Z',
          creatorId: 1,
          roleCode: 'user8',
          roleDesc: '这是用户8',
          roleId: 9,
          roleNm: '用户8',
          status: 0,
          sysRole: false,
          updateTm: '2019-03-14T07:51:45.742Z',
          updaterId: 1
        },
        {
          cmntStr: 'string',
          createTm: '2019-03-14T07:51:45.742Z',
          creatorId: 1,
          roleCode: 'user9',
          roleDesc: '这是用户9',
          roleId: 10,
          roleNm: '用户9',
          status: 0,
          sysRole: false,
          updateTm: '2019-03-14T07:51:45.742Z',
          updaterId: 1
        }
      ]
    }
  }
}

export function updateRole() {
  return {
    url: 'sys/sysRoleMgr',
    type: 'put',
    data: {
      msg: 'success',
      code: '0',
      data: '操作成功'
    }
  }
}
